package jgl.vajra.kingkong.part.vehicle.activity;

import jgl.vajra.kingkong.R;
import jgl.vajra.kingkong.databinding.ActivityCalculateAccountsBinding;
import jgl.vajra.kingkong.listener.MyToolbarViewListener;
import jgl.vajra.kingkong.manager.IntentManager;
import jgl.vajra.kingkong.part.vehicle.contract.CalculateAccountsContract;
import jgl.vajra.kingkong.part.vehicle.viewModel.CalculateAccountsViewModel;
import jgl.vajra.kingkong.widget.mvvm.factory.CreateViewModel;
import jgl.vajra.kingkong.widget.mvvm.view.BaseMVVMActivity;
import jgl.vajra.kingkong.widget.utils.ToastUtils;

@CreateViewModel(CalculateAccountsViewModel.class)
public class CalculateAccountsActivity extends BaseMVVMActivity<CalculateAccountsViewModel, ActivityCalculateAccountsBinding> implements CalculateAccountsContract.View {
    @Override
    public int getLayoutId() {
        return R.layout.activity_calculate_accounts;
    }

    @Override
    public void initView() {
        super.initView();
        mBinding.setView(this);

        mBinding.toolbar.setMyToolbarViewListener(new MyToolbarViewListener(){
            @Override
            public void onRightTextClick() {
                super.onRightTextClick();
                IntentManager.toPricingRulesActivity(CalculateAccountsActivity.this);
            }
        });

    }

}
